using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;

public class AudioController : Singleton<AudioController>
{
    private int _masterVolume=100;
    private int _bgmVolume=100;
    private int _sfxVolume=100;

    public int master_volume
    {
        get => _masterVolume;
        set
        {
            _masterVolume=value;
            foreach (var ba in basicAudioList)
            {
                ba.SetVolume();
            }   
        }
    }
    public int bgm_volume
    {
        get => _bgmVolume;
        set
        {
            _bgmVolume=value;
            foreach (var ba in basicAudioList)
            {
                ba.SetVolume();
            }   
        }
    }
    public int sfx_volume
    {
        get => _sfxVolume;
        set
        {
            _sfxVolume=value;
            foreach (var ba in basicAudioList)
            {
                ba.SetVolume();
            }   
        }
    }
    public List<BasicAudio> basicAudioList;
    
    
}
